$b-color: darken(#fff, 10);
.file-summary{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.file-uploader {
  label {
    margin: 0;
  }
  input {
    position: absolute;
    left: -9999px;
    visibility: hidden;
  }
}
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0;
  text-align: justify;
  &:empty::after {
    content: "未选择文件";
    display: block;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: darken(#fff, 20);
  }
  li {
    transition: box-shadow 0.2s;
    font-size: 14px;
    display: inline-block;
    width: 150px;
    height: 200px;
    border: solid 1px darken(#fff, 10);
    vertical-align: middle;
    cursor: move;
    border-radius: 2px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;

    .file-layer {
      position: absolute;
      height: 40px;
      line-height: 40px;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #fff;
      text-align: center;
      transition: all .2s;
    }
    .del-file {
      width: 20px;
      height: 20px;
      background: url(./assets/drop.png) no-repeat center;
      background-size: contain;
      cursor: pointer;
      display: none;
      vertical-align: middle;
    }
    &:hover {
      box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 10px -2px;
      .file-layer {
        background: rgba(0, 0, 0, 0.8);
      }
      .file-name {
        display: none;
      }
      .del-file {
        display: inline-block;
      }
    }
    &.active {
      box-shadow: rgba(0, 0, 0, 0.25) 0px 15px 45px -9px;
      // border: solid 2px #2e6da4;
    }
    margin: 5px;
  }
}
